﻿<UserControl x:Class="MyoSharp.HackNighter.Controls.EnemyUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="50" Width="50">

    <UserControl.Resources>
        <Storyboard x:Key="DieStoryboard" >
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TranslateTransform" Storyboard.TargetProperty="Y">
                <LinearDoubleKeyFrame Value="-40" KeyTime="0:0:0.5"/>
                <LinearDoubleKeyFrame Value="100" KeyTime="0:0:1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>

    <Image Source="../Assets/Images/enemy.png" RenderTransformOrigin="0.5, 0.5" >
        <Image.RenderTransform>
            <TranslateTransform  x:Name="TranslateTransform" />
        </Image.RenderTransform>
    </Image>
</UserControl>
